package com.ftg.learn.chapter01;

/**
 * 斐波那契数列
 *
 * @author lenovo
 * @version 1.0
 * @date 2023/5/27 14:36
 */

public class Fibonacci {
    public static void main(String[] args) {
        int start=1;
        int second=1;
        System.out.println(start+"\t");
        System.out.println(second+"\t");
         int index=0;
        while (index++<5){
            int t=start+second;
            System.out.print(start+second+"\t");
            start=second;
            second=t;
        }
    }
}
